<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh-CN" class="ie8"> <![endif]-->
<html lang="zh-CN">

	<head>
		<meta charset="utf-8" />
		<title>{$store_info.title}_{$web_name}</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="Keywords" content="{$store_info.keywords}" />
		<meta name="Description" content="{$store_info.description}" />
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
		<meta content="" name="description" />
		<meta content="" name="author" />

		<!-- #is_wabp_start -->
		<meta name='is_webp' content='no' />
		<!-- #is_wabp_end -->
		<meta name="csrf-param" content="_csrf">
	
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Store/template/demo/css/common.css" />
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Store/template/demo/css/shop_header.css" />
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Store/template/demo/css/shop_coupon.css" />
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Store/template/demo/css/bonus_message.css" />
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Store/template/demo/css/swiper.min.css" />
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Store/template/demo/css/dianpu.css" />
		<!-- ================== END BASE CSS STYLE ================== -->
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/jquery.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/zepto.min.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/zepto.waypoints.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/swiper.jquery.min.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/shop.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/yii.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Shop/js/layer.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/jquery.method.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/jquery.modal.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/common.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/jquery.tablelist.js"></script>
		<script src="/themes/wnsc_moblie/Public/js/common.js" type="text/javascript" charset="utf-8"></script>
		<!--整站改色 _start-->
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Store/template/demo/css/color-style.css" />
		<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=HPFVytsnvThBbVcb02NljVW4"></script>
		<script type="text/javascript" src="https://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
		<link rel="stylesheet" href="https://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />
		<style type="text/css">
			h2.title{height:2rem;line-height:2rem;font-size:0.75rem;color: #222;text-align: center;position: relative;}
			h2.title.bg{ background:#fff;}
			h2.title>font {display: inline-block;width:1.5rem;height:0.05rem;background: #999;position: relative;top:0.95rem; vertical-align:top;}
			h2.title>span{ display:inline-block; margin:0 auto; font-weight:bold;}

		</style>
	</head>

	<body>

		<div class="shop-top-box shop-top-con1">
			<div class="shop-top-bg">
				<img src="{$store_template_info.portrait}">
			</div>
			<header class="header">
				<div class="header-left">
					<a class="sb-back" href="javascript:history.back(-1)" title="返回"></a>
				</div>
				<div class="header-middle">
					<form name="searchForm" method="get" action="">
						<div class="text-box">
							<input type="text" name="keyword" value="" class="text" placeholder="搜索本店商品">
							<input type="submit" class="submit" value="">
						</div>
					</form>
				</div>
				<div class="header-right">
					<aside class="top_bar">
						<div class="show-menu" id="show_more">
							<a href="javascript:void(0);"></a>
						</div>
					</aside>
				</div>
			</header>

			<!-- 隐藏菜单_start -->
			<div class="show-menu-info" id="menu">
				<ul>
					<li>
						<a href="/"><span class="index-menu"></span><i>首页</i></a>
					</li>
					<li>
						<a href="{:U('list/catalog')}"><span class="category-menu"></span><i>分类</i></a>
					</li>
					<li>
						<a href="{:U('cart/cart_list')}"><span class="cart-menu"></span><i>购物车</i></a>
					</li>
					<li style=" border:0;">
						<a href="{:U('user/center')}"><span class="user-menu"></span><i>我的</i></a>
					</li>
				</ul>
			</div>

			<div class="shop-info">
				<div class="shop-logo">
					<img src="{$store_template_info.logo}" alt="{$store_info.title}">
				</div>
				<php>if($rsstoreinfo_status==1){</php>
					<div class="shop-collect-btn SZY-SHOP-IS-COLLENT" data-shop_id="{$_GET['id']}" style="background: #f00;">
						<i class="iconfont">&#xe615;</i>
						<span>已收藏</span>
					</div>
				<php>}else{</php>
					<div class="shop-collect-btn SZY-SHOP-IS-COLLENT" data-shop_id="{$_GET['id']}">
						<i class="iconfont">&#xe615;</i>
						<span>收藏</span>
					</div>
				<php>}</php>
				<div class="shop-info-right">
					<div class="shop-name">{$store_template_info.title}</div>

					<div class="shop-notice">
						<em>公告</em>
						<ul class="SZY-SHOP-ARTICLE">
							<li>
								<a href="javascript:void(0)">{$store_info.notice}</a>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
<script type="text/javascript">
	$(function(){
		$('.SZY-SHOP-IS-COLLENT').click(function(){
			var store_id=$(this).attr('data-shop_id');
				$.post('/user/collect', {
				id: store_id,
				type: 2,
			}, function(result) {
				if(result.code == 1) {
					layer.msg(result.message);
					$('.SZY-SHOP-IS-COLLENT').css('background','#f00');
					$('.SZY-SHOP-IS-COLLENT span').html('已收藏')
				} else {
					layer.msg(result.message);

                    $('.SZY-SHOP-IS-COLLENT').css('background','#CCCCCC');
                    $('.SZY-SHOP-IS-COLLENT span').html('收藏')
				}
			}, "json");
		})
	})
	
</script>

		<div class="shop-nav clearfix">
			<ul class="nav-ul">
				<li class="current">
					<a href="{:U('store/index',array('id'=>$store_info['id']))}">
						<i class="iconfont">&#xe601;</i>
						<span>店铺首页</span>
					</a>
				</li>
				<li>
					<a href="{:U('store/type',array('id'=>$store_info['id'],'shop_id'=>0))}">
						<i class="SZY-SHOP-GOODS-COUNT">{$shop_count}</i>
						<span>全部商品</span>
					</a>
				</li>
				<li>
					<a href="{:U('list/coupons',array('id'=>$_GET['id']))}">
						<i class="SZY-SHOP-BONUS-COUNT"><img src="/themes/wnsc_moblie/Public/images/youhuiquan.png" alt="" style="width: 29px;"></i>
						<span>店铺优惠券</span>
					</a>
				</li>
			</ul>
		</div>
		

		<script type='text/javascript'>
			$(".nav-ul").waypoint(function() {
				$(".shop-nav").toggleClass("fixed");
			}, {
				offset: "50"
			});
		</script>

		<foreach name="store_class_list " item="v">

			<!--内容区域 end-->

			<!-- 默认缓载图片 -->
			<!-- 商品楼层1 -->
			<section class="goods-floor">
				<div class="floor-box">
					<div style="text-align:center;">
						<h2 class="title" style="background-color: ; ">
							<font style="background:#000000;">&nbsp;</font>
							&nbsp;&nbsp;
							<span style="color:#000000;">{$v['class_name']}</span>
							&nbsp;&nbsp;
							<font style="background:#000000;">&nbsp;</font>
						</h2>
						
					</div>
					<ul class="m-t-0">

						<foreach name="v['shop_list']" item="vo">

							<li class="goods-col02">
								<div class="goods-info">

									<div class="goods-pic">
										<a href="{:U('shop/index',array('id'=>$vo[id]))}" title="{$vo.title}">
											<img class="lazy square" src="{$vo.image}" alt="{$vo.title}">
										</a>
									</div>
									<div class="goods-name">
										<a href="{:U('shop/index',array('id'=>$vo[id]))}" title="{$vo.title}">{$vo.title}</a>
									</div>
									<div class="price">
										<span class="price-color">￥{$vo.price}</span>
									</div>
								</div>
							</li>
						</foreach>

					</ul>

					<!-- -->
				</div>
			</section>
			<!--新品上市 end-->
		</foreach>
		<div class="met-editor lazyload clearfix grey-box">
			<div style="margin: 0 0 11px;font-size: 14px;">
				<p style="text-align: center; line-height: normal;"><span style="font-size: 12px;"></span></p>
				<p><strong style="font-size: 18px;line-height: 1.8;">关于本店</strong></p>
				{$store_info.pt_jieshao|htmlspecialchars_decode}
			</div>
		</div>
		<style type="text/css">
			.grey-box{background: #fff;border-radius: 8px;border: 1px solid #dcdcdc;border-color: rgba(0, 0, 0, 0.14);box-shadow: 0 3px 8px -6px rgba(0, 0, 0, 0.1);margin-bottom: 50px;}
			.grey-box p{max-width: 100%!important;}
			.met-editor{background: #ffffff;width: 90%;max-width: 100%;font-size: 18px;line-height: 1.8;color: #222;word-wrap: break-word;margin: 9px auto;padding: 10px;}
			.met-show .met-editor div{width: 100% !important;float: none !important;margin: 0 !important;text-align: left;}
			/*footer_nav1底部悬浮菜单css*/
			.v_nav{position: fixed; bottom: 0; width: 100%; height:45px; background-color:#fff;border-top: #dcdcdc 1px solid; z-index: 97;padding:0px; margin:0px; padding-bottom:2px; padding-top:2px}
			.vf_nav{width:100%;height:45px; margin:auto; padding:0px; margin:0px;}
			.vf_nav ul li{width:20%; height:45px; float:left; text-align:center; margin:0px;}
			.vf_nav ul li a{text-align:center; font-size:12px; color:#333; width:45px; display:block; height:45px; position: relative; margin:auto}
			.vf_nav ul li i{display:block; width:25px; height:25px; margin:auto;}
			.vf_1,.vf_2,.vf_3,.vf_4,.vf_5{background:url(/themes/wnsc_moblie/Public/images/footer_navimg.png) no-repeat;background-size: auto 180px;}
			.vf_1{background-position:-2px -6px;}
			.vf_2{background-position:-2px -47px;}
			.vf_3{background-position:0 -81px;}
			.vf_4{background-position:-1px -114px;}
			.vf_5{background-position:-1px -147px;}
			.vf_nav ul li span{display:block; width:100%; height:20px; line-height:20px;}
			.vf_nav ul li a:active{color: #ff7171;}
			#ECS_CARTINFO{position: absolute;top: -6px;color: #fff;text-align: center;font-weight: normal;font-size: 12px;width: 25px;height: 25px;line-height: 25px;background: #ff2233;border-radius: 50%;-webkit-transform-origin-x: 0;-webkit-transform: scale(0.65);}
		</style>
		<php>if($store_info['lng']&&$store_info['lat']){</php>


			<div id="allmap"  style="width: 94%;margin: 0 auto;height: 400px;"></div>

			<script type="text/javascript">
                // 百度地图API功能
                var map = new BMap.Map('allmap');
                var poi = new BMap.Point("{$store_info.lng}", "{$store_info.lat}"); // 创建点坐标
                map.centerAndZoom(poi, 17);
                map.enableScrollWheelZoom();

                var content =      "<div style='display: block;width:50%;float: left;padding: 10px 0;overflow: hidden;'><img style='float:left;margin:4px' id='imgjingu' src='{$store_template_info.logo}'  width='100' /></div>" +
                    "<p style='font-size: 12px;line-height: 21px;font-weight: bold;'>店铺动态评分</p>"+
                    "<p style='font-size: 12px;line-height: 21px;'>描述相符：<font style='color: #f00;'>{:number_format($store_info['store_desccredit'], 2, '.', '')}</font></p>"+
                    "<p style='font-size: 12px;line-height: 21px;'>服务态度：<font style='color: #f00;'>{:number_format($store_info['store_servicecredit'], 2, '.', '')}</font></p>"+
                    "<p style='font-size: 12px;line-height: 21px;'>发货速度：<font style='color: #f00;'>{:number_format($store_info['store_deliverycredit'], 2, '.', '')} </font></p>"+
                    "<p style='font-size: 12px;line-height: 21px;margin-top: 3px;'>地址：{$store_info.rel_address}  </p>";

                //创建检索信息窗口对象
                var searchInfoWindow = null;
                searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
                    title  : "{$store_info.title}",      //标题
                    width  : 220,             //宽度
                    height : 125,              //高度
                    panel  : "panel",         //检索结果面板
                    enableAutoPan : true,     //自动平移
                    searchTypes   :[
                        BMAPLIB_TAB_SEARCH,   //周边检索
                        BMAPLIB_TAB_TO_HERE,  //到这里去
                        BMAPLIB_TAB_FROM_HERE //从这里出发
                    ]
                });
                var marker = new BMap.Marker(poi); //创建marker对象
                marker.enableDragging(); //marker可拖拽
                marker.addEventListener("click", function(e){
                    searchInfoWindow.open(marker);
                })
                map.addOverlay(marker); //在地图中添加marker
                //样式1
                var searchInfoWindow1 = new BMapLib.SearchInfoWindow(map, "{$store_info.title}", {
                    title: "{$store_info.title}", //标题
                    panel : content , //检索结果面板
                    enableAutoPan : true, //自动平移
                    searchTypes :[
                        BMAPLIB_TAB_FROM_HERE, //从这里出发
                        BMAPLIB_TAB_SEARCH   //周边检索
                    ]
                });
                searchInfoWindow.open(marker);

			</script>

			<php>}</php>
			<mtc_include file="Public:footer" />
	</body>

</html>